home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / etc / hal / fdi / policy / preferences.fdi
Encoding:
Extensible Markup Language  |  2006-10-20  |  2.2 KB  |  60 lines

  1. <?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- -->
  2.  
  3. <!-- 
  4.   Some examples how to use hal fdi files for system preferences 
  5.   You can either uncomment the examples here or put them in a seperate .fdi
  6.   file.
  7. -->
  8. <deviceinfo version="0.2">
  9. <!-- 
  10.   The following shows how to hint gnome-volume-manager and other programs 
  11.   that honor the storage.automount_enabled_hint to not mount non-removable
  12.   media.
  13. -->
  14. <!--
  15.   <device>
  16.     <match key="storage.hotpluggable" bool="false">
  17.       <match key="storage.removable" bool="false">
  18.         <merge key="storage.automount_enabled_hint" type="bool">false</merge>
  19.       </match>
  20.     </match>
  21.   </device>
  22. -->
  23.  
  24.  
  25. <!-- 
  26.   The following shows how to put sync and noatime on for devices smaller then
  27.   1Gb and off for device larger then that. Note that the sync option can wear
  28.   out device faster then you'd like too. See
  29.   http://readlist.com/lists/vger.kernel.org/linux-kernel/22/111748.html for
  30.   more info.
  31. --> 
  32. <!--
  33.   <device> 
  34.     <match key="block.is_volume" bool="true">
  35.       <match key="volume.size" compare_lt="1000000000">
  36.         <match key="@block.storage_device:storage.hotpluggable" bool="true">
  37.           <merge key="volume.policy.mount_option.sync" type="bool">true</merge>
  38.           <merge key="volume.policy.mount_option.noatime" type="bool">true</merge>
  39.         </match>
  40.         <match key="@block.storage_device:storage.removable" bool="true">
  41.           <merge key="volume.policy.mount_option.sync" type="bool">true</merge>
  42.           <merge key="volume.policy.mount_option.noatime" type="bool">true</merge>
  43.         </match>
  44.       </match>
  45.       <match key="volume.size" compare_ge="1000000000">
  46.         <match key="@block.storage_device:storage.hotpluggable" bool="true">
  47.           <merge key="volume.policy.mount_option.sync" type="bool">false</merge>
  48.           <merge key="volume.policy.mount_option.noatime" type="bool">false</merge>
  49.         </match>
  50.         <match key="@block.storage_device:storage.removable" bool="true">
  51.           <merge key="volume.policy.mount_option.sync" type="bool">false</merge>
  52.           <merge key="volume.policy.mount_option.noatime" type="bool">false</merge>
  53.         </match>
  54.       </match>
  55.     </match>
  56.   </device>
  57. --> 
  58. </deviceinfo>
  59.  
  60.